package com.example.woke;

import cn.xl.xxl.imagecache.ImageLoader;

import com.zhongcai.online.R;

import android.os.Bundle;
import android.app.Activity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

public class MapshowActivity extends Activity {

	private ImageView mView;
	private ImageLoader imageLoader;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_mapshow);
		
		imageLoader = new ImageLoader(this);
		
		String mapurl = getIntent().getStringExtra("mapurl");
		
		
		mView = (ImageView) findViewById(R.id.avmapshow_image);
		imageLoader.DisplayImage(mapurl, mView, false, false, true,0);
		mView.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
			}
		});
	}
	
	@Override
	protected void onDestroy() {
		imageLoader.clearCache();
		imageLoader.clearMemoryCache();
		super.onDestroy();
	}
}
